/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-controls button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-controls button:hover {
    background-color: #2980b9;
}

.file-operations {
    padding: 15px;
    background-color: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.file-operations button {
    padding: 8px 15px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.file-operations button:hover {
    background-color: #219653;
}

.breadcrumb {
    padding: 10px 15px;
    background-color: #ecf0f1;
    border-bottom: 1px solid #ddd;
}

.file-list {
    padding: 15px;
}

.file-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item:hover {
    background-color: #f9f9f9;
}

.file-actions button {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    margin-left: 10px;
}

.file-actions button:hover {
    text-decoration: underline;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    /* max-height: 70vh;  视口高度的 70% */
    overflow-y: auto;
    padding-right: 10px;  /* 防止滚动条挡住文字 */
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 50%;
    border-radius: 5px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
